package cn.zc.entity;

import lombok.Data;
import lombok.Getter;

@Data
public class ScheduledTaskInfo {
    private final String taskId; // 可以是UUID或其他唯一标识符
    @Getter
    private final String cronExpression;
    private final boolean isRunning;

    public ScheduledTaskInfo(String taskId, String cronExpression, boolean isRunning) {
        this.taskId = taskId;
        this.cronExpression = cronExpression;
        this.isRunning = isRunning;
    }

    public boolean isRunning() {
        return isRunning;
    }
}